package com.rainy.sso.common.service;

import org.springframework.stereotype.Service;
import java.util.List;
import javax.annotation.Resource;
import com.rainy.sso.common.dao.UserRoleDao;
import com.rainy.sso.client.entity.UserRole;
import com.rainy.sso.client.service.UserRoleService;

/**
* @author liuqin on 2017-12-21 14:26:10
*/
@Service("userRoleService")
public class UserRoleServiceImpl implements UserRoleService {

	@Resource
	private UserRoleDao userRoleDao;

    @Override
    public List<UserRole> list(Long offset, Long limit){
		return userRoleDao.list(offset,limit);
	}

    @Override
    public Long count(Long offset,Long limit){
        return userRoleDao.count(offset,limit);
	}

    @Override
    public List<UserRole> queryUserRoleByUid(Long uid){
        return userRoleDao.queryUserRoleByUid(uid);
	}
	
	@Override
	public void save(UserRole userRole){
		userRoleDao.save(userRole);
	}
	
	@Override
	public void update(UserRole userRole){
		userRoleDao.update(userRole);
	}
	
	@Override
	public void delete(Long uid){
		userRoleDao.delete(uid);
	}

	
}
